package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.BTermInfo;
import cc.rengu.redp.bizimpl.upmp.vo.BTermBrandInfoVO;
import cc.rengu.redp.bizimpl.upmp.vo.BTermInfoVO;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author lizk
 */
public interface IBTermInfoService extends IService<BTermInfo> {

    IPage<BTermInfo> findByPage(QueryRequest queryRequest, BTermInfoVO termInfo);

    @Transactional
    void createInfo(BTermInfoVO info) throws RedpException;

    @Transactional
    void updateInfo(BTermInfoVO info) throws RedpException;

    @Transactional
    void resetKey(BTermInfoVO info);

    @Transactional
    void infoStatusChange(BTermInfoVO info) throws RedpException;

    void batchInsert(List<BTermInfoVO> list) throws RedpException;

    BTermInfoVO checkAndDeal(BTermInfoVO bTermInfoVO);

    List<BTermInfo> selectTermNo(String status, String instId);

    BTermInfo selectByTermNo(String termNo);

    BTermInfo getTermInfosByTmNo(String instId, String terminalNo);

    //查询所有
    IPage<BTermInfo> termNoList();
}
